#include "myhead.h"

//增加ip
void ip_add()
{
    ip *n = malloc(sizeof(ip_list));
    n->fd = fd;
    strncpy(n->ip, ip, sizeof(n->ip));
    n->port = port;
    pthread_mutex_lock(&g_list_mtx);
    n->next = g_list;
	strncpy(n->name, name, sizeof(n->name));
    g_list = n;
    pthread_mutex_unlock(&g_list_mtx);
}
